package po.coursepo;

import vo.publishcoursevo.PublishCourseVO;
import Enum.CourseType;
import Enum.Faculty;
import Enum.Module;

public class PublishCoursePO {
	private String courseName;
	private String briefIntro;
	private String plan;
	private Faculty faculty;
	private CourseType type;
	private String tchName;
	private Module module;
	private String applicant;
	private int maxNum;
	
	
	public PublishCoursePO(String name , String intro , String plan,Faculty faculty , CourseType courseType,String tchName , int maxNum , Module module , String applicant){
		courseName = name;
		briefIntro = intro;
		this.plan = plan;
		this.faculty=faculty;
		this.type = courseType;
		this.tchName = tchName;
		this.module = module;
		this.applicant = applicant;
		this.maxNum = maxNum;
	}
	
	public PublishCoursePO(PublishCourseVO vo){
		courseName = vo.getCourseName();
		briefIntro = vo.getIntro();
		this.plan = vo.getPlan();
		this.faculty=vo.getFaculty();
		this.type = vo.getCourseType();
		this.tchName = vo.getTchName();
		this.module = vo.getModule();
		this.applicant = vo.getAppicant();
		this.maxNum = vo.getMaxNum();
	}
	
	public String getCourseName(){
		return courseName;
	}
	
	public String getIntro(){
		return briefIntro;
	}
	
	public String getPlan(){
		return plan;
	}
	
	public Faculty getFaculty() {
		return faculty;
	}
	
	public CourseType getCourseType(){
		return type;
	}
	
	public String getTchName(){
		return tchName;
	}
	
	public Module getModule(){
		return module;
	}
	
	public String getApplicant(){
		return applicant;
	}
	
	public int getMaxNum(){
		return maxNum;
	}
}
